package com.sunda.spmsuser.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * <p>
 * 用户仓库关联关系表
 * </p>
 *
 * @author Wayne
 * @since 2021-01-25
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("SPMS_USER_WHS")
@ApiModel(value="SpmsUserWhs对象", description="用户仓库关联关系表")
public class SpmsUserWhs implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "用户工号")
    @TableField("WORK_CODE")
    private String userId;

    @ApiModelProperty(value = "工厂代码")
    @TableField("WERKS")
    private String werks;

    @ApiModelProperty(value = "车间地点代码")
    @TableField("WHS_LOCATION_CODE")
    private String whsLocationCode;


    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getWerks() {
        return werks;
    }

    public void setWerks(String werks) {
        this.werks = werks;
    }

    public String getWhsLocationCode() {
        return whsLocationCode;
    }

    public void setWhsLocationCode(String whsLocationCode) {
        this.whsLocationCode = whsLocationCode;
    }

    @Override
    public String toString() {
        return "SpmsUserWhs{" +
                "userId='" + userId + '\'' +
                ", werks='" + werks + '\'' +
                ", whsLocationCode='" + whsLocationCode + '\'' +
                '}';
    }
}
